package com.nexus.all.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.nexus.bean.convertor.LongJsonDeserializer;
import com.nexus.bean.convertor.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 笔记内容表
 *
 * @TableName nexus_note_content
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel("笔记内容出参")
public class NoteContentVO {

    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("笔记内容")
    private String content;

    @ApiModelProperty("笔记配图url(可多个，分号分割，最多6个)")
    private String contentIms;

    @ApiModelProperty("推荐商家")
    private String merchant;

    @ApiModelProperty("菜品推荐")
    private String menuCommand;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}